﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace DEMO2
{
    public partial class caculate : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void btnCaculate_Click(object sender, EventArgs e)
        {
            //int num1 = 0;
            //int num2 = 0;

            //num1 = Convert.ToInt32(txtNum1.Text);
            //num2 = Convert.ToInt32(txtNum2.Text);

            //lblResult.Text = "结果是|："+(num1 + num2).ToString();
            lblResult.Text = txtNum1.Text + txtNum2.Text;
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            string title = "";
            string age = "";
            string sport = "";

            if (rdoMale.Checked == true)
            {
                title = "先生";
            }
            else if (rdoFemale.Checked == true)
            {
                title = "女士";
            }
            else
            {
            }


            age = DropDownList1.Text;

           if(CheckBox1.Checked==true)
           {
               sport = CheckBox1.Text;
           }
         
            if(CheckBox2.Checked==true)
           {
               sport = CheckBox2.Text;
           }
           else
           {
               
           }


           Response.Write(string.Format("{0},你好{1},{2}",title,age,sport));
        }

        protected void checkbox8_CheckedChanged(object sender, EventArgs e)
        {
            Response.Write("ch");
        }
    }
}